1
general::
To one's complete satisfaction, without limitation, as in I've been eating strawberries to my heart's content, or The youngsters played in the sand to their hearts' content. Shakespeare used this expression in a number of his plays. [Late 1500s]
American Heritage Idioms